import { CmdCode, EventCode } from '../../code/index';
import { CmdSignModel,DoctorEvaluateTabModel } from '../../models/index';
import { AHttpCmd } from '../base.cmd';

export class DoctorEvaluateTabListCmd extends AHttpCmd {
    constructor(private model:DoctorEvaluateTabModel) {
        super();
    }

    req(): CmdSignModel {
        return super.buildCmdSign(this.model);
    }

    resp(data: any): void {
    }

    error(model: CmdSignModel): void {
    }

    setParams(params:any){
        if(!this.model){
            this.model = new DoctorEvaluateTabModel();
        }
        Object.assign(this.model, params);
    }

    getCmdCode(): string {
        return CmdCode.EVALUATE_TAB_LIST;
    }
}
